import axios from 'axios'

let instance = axios.create({
    baseURL:"/api",
    timeout:10000
})

instance.interceptors.request.use((config)=>{
    config.headers["token"]="xxxxx"
    return config;
})

instance.interceptors.response.use((res)=>{
    return res.data
},(err)=>Promise.reject(err))


export default instance